package innerclass;

/**
 * @author wly
 * @create 2022-12-09 10:28
 */
public class MemberInnerClass {
    public static void main(String[] args) {
        Outer04 outer04 = new Outer04();
//        System.out.println(outer04.getClass());
        outer04.f2();
    }
}

class Outer04{
    private int n1 = 10;
    public String name = "张三";

    class Inner01{
        public void say(){
            System.out.println("n1 = " + n1 + " name = " + name);
        }
    }

    public void f2(){
        Inner01 inner01 = new Inner01();
        inner01.say();
    }
}
